package com.framework.bdf4j.msg.entity.dto;

import com.framework.bdf4j.msg.entity.domain.SysMessages;
import com.framework.bdf4j.msg.entity.domain.SysMsgReceiver;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 消息保存实体
 *
 * @author shan.deng
 * @date 2020-07-15 16:06:44
 */
@Data
@ApiModel(value = "消息保存参数")
public class SysMessagesDto extends SysMessages {

    @NotEmpty(message = "接收人不能为空")
    @ApiModelProperty("接收人")
    private List<SysMsgReceiver> sysMsgRecievers;
}
